#!/usr/bin/env python
# -*- coding:utf-8 -*-
import os
import sys
import django

base_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.append(base_dir)
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "s25.settings")
django.setup() # os.environ['DJANGO_SETTING_MODULE']

from web import models

# 往数据库添加数据： 链接数据库，操作，关闭连接
models.UserInfo.objects.create(username='miki', email='miki@live.com',
                               mobile_phone='18228292928',password='123123')